package simple;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test1 implements Serializable{
	public static boolean  doIt() {
		try {
			//return true;
			throw new MyException();
		} catch (MyException e) {
			throw new MyException();
		}
		finally {
			return false;
		}
	}
	
	public void doItt(){
		doIt();
	}
	
	
	public static void main(String[] args) {
		System.out.println("Hi");
		boolean a = true;
		String temp = (a) ? "" : "";
		some : for (int i = 0; i < args.length; i++) {
			continue some;
		}
		
		String b = "Ranjith";
		System.out.println(b.substring(1,4));
		//System.out.println(doIt());
		System.out.println("*****************");
		{
	        String string = "how much is pish tegj glob glob ?"; //var1[value1], var2[value2], var3[value3]
	        Pattern pattern = Pattern.compile("(\\ is )(.*?)(\\ ?)");
//	        Pattern pattern = Pattern.compile("(.*^)(\\ is)"); "(\\[)(.*?)(\\])"
//	        Pattern pattern = Pattern.compile("([^ is])");
//	        Pattern pattern = Pattern.compile("(.+)is"); #([^,]*
	        Matcher matcher = pattern.matcher(string);
	        while (matcher.find()) {
				System.out.println(matcher.group());
			}
	    }

	}

}
